<%-- 
    Document   : PerfilLleno
    Created on : 02-07-2011, 10:13:53 PM
    Author     : Claudia
--%>


<%@page import="org.apache.taglibs.standard.lang.jpath.adapter.Convert"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="DAL.*" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html>

<head>
  <title>Bienvenido!</title>
  <meta name="description" content="website description" />
  <meta name="keywords" content="website keywords, website keywords" />
  <meta http-equiv="content-type" content="text/html; charset=windows-1252" />
  <meta http-equiv="robots" content="noindex,nofollow" />
  <link rel="stylesheet" type="text/css" href="style/style.css" />
</head>

<body>
  <div id="main">
    <div id="header">
      <div id="logo">
        <div id="logo_text">
          <!-- class="logo_colour", allows you to change the colour of the text -->
          <h1><a href="index.jsp">Winter's<span class="logo_colour"> Class</span></a></h1>
          <h2>Enterate de las Actividades.</h2>
        </div>
      </div>
      <div id="menubar">
        <ul id="menu">
           <% HttpSession h = request.getSession();

          if(h.getAttribute("usuarios")!= null)
            { %>
             <li class="selected"><a href="index.jsp">Home</a></li>
             <li><a href="index.jsp">Home</a></li>
              <li><a href="logOut">Log Out</a></li>
            <% } else {%>
          <li class="selected"><a href="index.jsp">Home</a></li>
          <li><a href="Registrate.jsp">Registrate</a></li>
          <li><a href="Login.jsp">Inicia Sesion</a></li>
          <%}%>
        </ul>
      </div>
    </div>
    <div id="content_header"></div>
    <div id="site_content">
      <div class="sidebar">
        <!-- insert your sidebar items here -->

         <%
          if(h.getAttribute("nombre")!= null)
          { 
               if(h.getAttribute("foto")!=null)
               {
                String foto=Convert.toString(h.getAttribute("foto"));
            out.println("<img src=\"images/"+foto+"\" height=\"150px\" width=\"150px\"></img>"); %>
          
            <h2> Bienvenido: </h2><h1> <bean:write name="PerfilesForm" property="nombre"/></h1>
            <a href="logOut">Cerrar Sesion</a>
            <%
            }
        } %>


        <h3></h3>
        <ul>
          <li><a href="#"></a></li>
          <li><a href="#"></a></li>
          <li><a href="#"></a></li>
          <li><a href="#"></a></li>
        </ul>
        <h3>Search</h3>
        <form method="post" action="#" id="search_form">
          <p>
            <input class="search" type="text" name="search_field" value="Enter keywords....." />
            <input name="search" type="image" style="border: 0; margin: 0 0 -9px 5px;" src="style/search.png" alt="Search" title="Search" />
          </p>
        </form>
      </div>
      <div id="content">
        <!-- postula  al jsp postula -->
          
        <h1> Postula <a href="Postular.jsp"> Aquí</a></h1>
      </div>
    </div>
    <div id="content_footer"></div>
    <div id="footer">
      Copyright &copy; simplestyle_1 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.html5webtemplates.co.uk">design from HTML5webtemplates.co.uk</a>
    </div>
  </div>
<div style="text-align: center; font-size: 0.75em;">Design downloaded from <a href="http://www.freewebtemplates.com/">free website templates</a>.</div></body>
</html>